package com.mz.mattress.api.enums;

import lombok.Getter;

/**
 * 失败状态码枚举
 */
@Getter
public enum FailCodeEnum {

    //  登陆状态异常
    ACCOUNT_NOT_LOGIN(-2, "未登录"),
    ACCOUNT_LOGIN_TIMEOUT(-2, "登录超时，请重新登陆"),
    ACCOUNT_BE_REPLACED(-2, "帐号已在其他设备登录"),
    ACCOUNT_BE_KICK_OUT(-2, "帐号已被系统踢下线"),

    PERMISSION_CHANGE(-3, "帐号权限发生变化"),
    ;

    private Integer value;
    private String desc;

    FailCodeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
